package com.bkgy.controller.tpdol3data.controller;

import com.bkgy.controller.tpdol3data.entity.dto.TpdoL3CalBaseInfoRes;
import com.bkgy.controller.tpdol3data.entity.dto.TpdoL3CalDownRes;
import com.bkgy.controller.tpdol3data.entity.dto.TpdoL3CalRunRes;
import com.bkgy.controller.tpdol3data.service.ITPdoL3Cal1630Service;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Tag(name = "连退1630报表", description = "连退1630报表")
@Controller
@RequestMapping("/tpdol3cal1630")
@RequiredArgsConstructor
public class TPdoL3Cal1630Controller {

    private final ITPdoL3Cal1630Service service;

    @Operation(summary = "基本信息", description = "连退1630报表/基本信息")
    @GetMapping("/baseInfo")
    @ResponseBody
    public ResultData<TpdoL3CalBaseInfoRes> findBaseInfo() {
        return service.findBaseInfo();
    }

    @Operation(summary = "生产运行情况", description = "连退1630报表/生产运行情况")
    @GetMapping("/runList")
    @ResponseBody
    public ResultData<List<TpdoL3CalRunRes>> findRunList() {
        return service.findRunList();
    }

    @Operation(summary = "降级连退精整列表", description = "连退1630报表/降级连退精整列表")
    @GetMapping("/downList")
    @ResponseBody
    public ResultData<List<TpdoL3CalDownRes>> findDownList() {
        return service.findDownList();
    }

    @Operation(summary = "封闭量列表", description = "连退1630报表/封闭量列表")
    @GetMapping("/closeList")
    @ResponseBody
    public ResultData<List<TpdoL3CalDownRes>> findCloseList() {
        return service.findCloseList();
    }
}
